﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Detail.ascx.vb" Inherits="Control_Formula_Detail" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div id="view" class="BoxField" runat="server">
            <div class="HeadTitle">
                <h3>
                    XEM THÔNG TIN CÔNG THỨC
                </h3>
            </div>
            <div style="float: left; width: 100%">
                <div style="float: left; width: 55%">
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblTitle_detail" CssClass="DivLabel" runat="server" Text="Tiêu đề" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblTitle" CssClass="TextContent" runat="server" Text="lblTitle" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblDescription_detail" CssClass="DivLabel" runat="server" Text="Mô tả" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblDescription" CssClass="TextContent" runat="server" Text="lblDescription" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblMaterial_detail" CssClass="DivLabel" runat="server" Text="Nguyên liệu" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblMaterialSelect" CssClass="TextContent" runat="server" Text="lblMaterialSelect" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="Label1" CssClass="DivLabel" runat="server" Text="Mô tả nguyên liệu:" /></div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblMaterial" CssClass="TextContent" runat="server" Text="lblMaterial" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblWaytocook_detail" CssClass="DivLabel" runat="server" Text="Cách thực hiện" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblWaytocookSelect" CssClass="TextContent" runat="server" Text="lblWaytocookSelect" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="Label2" CssClass="DivLabel" runat="server" Text="Mô tả cách thực hiện:" /></div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblWaytocook" CssClass="TextContent" runat="server" Text="lblWaytocook" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblIsyoutube_detail" CssClass="DivLabel" runat="server" Text="Mã nhúng?" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:CheckBox ID="chkYoutube" runat="server" Enabled="false" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblFormulatypeid_detail" CssClass="DivLabel" runat="server" Text="Loại công thức" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblFormulatypeid" CssClass="TextContent" runat="server" Text="lblFormulatypeid" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblFastconduct_detail" CssClass="DivLabel" runat="server" Text="Hướng dẫn nhanh" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblFastconduct" CssClass="TextContent" runat="server" Text="lblFastconduct" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblPortion_detail" CssClass="DivLabel" runat="server" Text="Khẩu phần" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblPortion" CssClass="TextContent" runat="server" Text="lblPortion" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblTimepreparing_detail" CssClass="DivLabel" runat="server" Text="Thời gian chuẩn bị" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblTimepreparing" CssClass="TextContent" runat="server" Text="lblTimepreparing" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblTimetocook_detail" CssClass="DivLabel" runat="server" Text="Thời gian thực hiện" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblTimetocook" CssClass="TextContent" runat="server" Text="lblTimetocook" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblCost_detail" CssClass="DivLabel" runat="server" Text="Giá" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblCost" CssClass="TextContent" runat="server" Text="lblCost" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblStatusid_detail" CssClass="DivLabel" runat="server" Text="Trạng thái" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblStatusid" CssClass="TextContent" runat="server" Text="lblStatusid" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblCreator_detail" CssClass="DivLabel" runat="server" Text="Người tạo" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblCreator" CssClass="TextContent" runat="server" Text="lblCreator" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblCreated_detail" CssClass="DivLabel" runat="server" Text="Ngày tạo" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblCreated" CssClass="TextContent" runat="server" Text="lblCreated" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblModified_detail" CssClass="DivLabel" runat="server" Text="Ngày sửa" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblModified" CssClass="TextContent" runat="server" Text="lblModified" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblModifier_detail" CssClass="DivLabel" runat="server" Text="Người sửa" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblModifier" CssClass="TextContent" runat="server" Text="lblModifier" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblPublisheddate_detail" CssClass="DivLabel" runat="server" Text="Ngày xuất bản" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblPublisheddate" CssClass="TextContent" runat="server" Text="lblPublisheddate" /></div>
                    </div>
                    <%--<div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblBeffectivedate_detail" CssClass="DivLabel" runat="server" Text="Ngày hiệu lực" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblBeffectivedate" CssClass="TextContent" runat="server" Text="lblBeffectivedate" /></div>
                    </div>--%>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblEeffectivedate_detail" CssClass="DivLabel" runat="server" Text="Ngày hết hiệu lực" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblEeffectivedate" CssClass="TextContent" runat="server" Text="lblEeffectivedate" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblDateontv_detail" CssClass="DivLabel" runat="server" Text="Ngày phát trên TV" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblDateontv" CssClass="TextContent" runat="server" Text="lblDateontv" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="Label3" CssClass="DivLabel" runat="server" Text="Hiển thị ở trang chủ" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:CheckBox ID="chkIsHot" runat="server" />
                           </div>
                    </div>
                     <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            Original :</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:CheckBox ID="chkIsNew" runat="server" />
                           </div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblVoted_detail" CssClass="DivLabel" runat="server" Text="Số bình chọn" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblVoted" CssClass="TextContent" runat="server" Text="lblVoted" /></div>
                    </div>
                    <div class="DivRow" style="width: 100%; float: left">
                        <div class="DivLabel" style="float: left; width: 30%">
                            <asp:Label ID="lblViewed_detail" CssClass="DivLabel" runat="server" Text="Số lượt xem" />:</div>
                        <div class="TextContent" style="float: left; width: 65%">
                            <asp:Label ID="lblViewed" CssClass="TextContent" runat="server" Text="lblViewed" /></div>
                    </div>
                </div>
               <div style="float: left; width: 45%">
                    <div id="divEmbededVideo" style="width: 220px; height: 300px" runat="server">
                        <%--<asp:Label ID="lblShowVideo" runat="server" Text=""></asp:Label>--%>
                        <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
                        <embed type="application/x-shockwave-flash" src="<%=PlayerUrl() %>" width="220" height="190"
                            id="player2" name="player2" bgcolor="#000000" quality="high" allowfullscreen="true"
                            allowscriptaccess="always" wmode="opaque" flashvars="file=<%=FileUrl() %>" />
                        <script type="text/javascript">

                            var flashvars = {
                                'file': '<%=FileUrl() %>',
                                'image': '<%=ImageUrl() %>'
                            }
                            var params = {
                                'allowfullscreen': 'true',
                                'allowscriptaccess': 'always'
                            };
                            var attributes = {
                                'id': 'player2',
                                'name': 'player2'
                            };

                            swfobject.embedSWF('<%=PlayerUrl() %>', 'player2', '220', '190', '9', '#000000',
                                flashvars, params, attributes);
    
                        </script>
                        <!-- END OF THE PLAYER EMBEDDING -->
                    </div>
                    <div style="clear:both" ></div>
                    <div id="divFileYoutube"  style="width: 220px; height: 300px;" runat="server" visible="false">
                    <asp:Literal ID="ltrShow"     runat="server"></asp:Literal>
                    </div>
                    <div style="clear:both; height:20px" ></div>
                     <div id="div1"  style="width: 220px; height: 190px;" runat="server" >
                         <asp:Image ID="imageBig" width="220" height="190" runat="server" 
                             ImageUrl="~/images/NoPhotoAvailable.jpg" ToolTip="Ảnh bigbanner" />
                   </div>
                   
                    <div style="clear:both" ></div>
                     <div id="div2"  style="width: 220px; height: 190px;padding-left: 10px; padding-top: 10px;" runat="server" >
                  <asp:Image ID="img" width="220" height="190" runat="server" 
                             ImageUrl="~/images/NoPhotoAvailable.jpg" ToolTip="Ảnh đại diện" />
                  </div>
                </div>
            </div>
        </div>
        <asp:HiddenField ID="hidID" Value="0" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>
